﻿<local:BaseDataVisualizer
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls"
	x:Class="BrainTechLLC.Silverlight.ClientApplication.EditAbility" 
    Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" 	
    xmlns:BrainTechLLC="clr-namespace:BrainTechLLC;assembly=BrainTechLLC.Silverlight.Core" 
    xmlns:loc="clr-namespace:BrainTechLLC.Silverlight.ClientApplication" 
    xmlns:System="clr-namespace:System;assembly=mscorlib">
    <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" x:Name="gridData" Width="Auto" Background="#FFFFFFFF">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="Ability Name:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=TwoWay, Path=AbilityName}" Style="{StaticResource TextBoxNoScroller}" />
            <ContentControl VerticalAlignment="Center" Grid.Column="2" Content="Enable Commands:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=EnableCommandsList}" Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <local:DataVisualizer Width="Auto" HorizontalAlignment="Stretch" Height="Auto"
                                      local:WindowContainer.IsOpen="False"
                                      Loaded="ShowProps_Loaded" WindowlessMode="True"  
                                      x:Name="editAbilityProperties" Owner="{Binding}"
                                      IsCollection="True" VisualizerName="ShowPropertiesControl" 
                                      Template="{StaticResource WinContainer}" DataToVisualize="{Binding Mode=OneWay, Path=ObservableProperties}" DescriptionTextString="Ability Properties" IsOpen="True" HeaderBackground="#FF006EA6" WindowBorder="#FF9C0000" />
        </Grid>
    </StackPanel>
</local:BaseDataVisualizer>